import 'package:flutter/material.dart';

void main() {
  runApp(MainPage());
}
class MainPage extends StatelessWidget{
  const MainPage({Key? key}) : super(key: key);
  List<Widget> getList(){
    return List.generate(10,(index){
      return Container(
        width:100,
        height:100,
        color: Colors.primaries[index],
      );
    });
    
  }
  @override
  Widget build(BuildContext context){
    return MaterialApp(
      home:Scaffold(
        body:Container(
          alignment: Alignment.center,
          width:double.infinity,
          height:double.infinity,
          color: Colors.grey,
          child: 
          Image.asset(
            "lib/images/img1.jpg",
            width: 300,
            height: 300,
            fit: BoxFit.cover,
          ),
        )
        )
    );
  }
}